package com.xujie.sportsmeeting.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 破纪录统计VO
 */
@Data
@Schema(description = "破纪录统计信息")
public class RecordBreakingVO {

    @Schema(description = "记录ID")
    private Long recordId;

    @Schema(description = "项目名称")
    private String eventName;

    @Schema(description = "项目编码")
    private String eventCode;

    @Schema(description = "运动员姓名")
    private String athleteName;

    @Schema(description = "学号")
    private String studentNumber;

    @Schema(description = "院系")
    private String department;

    @Schema(description = "班级")
    private String className;

    @Schema(description = "新纪录成绩")
    private String newRecord;

    @Schema(description = "原纪录成绩")
    private String oldRecord;

    @Schema(description = "原纪录保持者")
    private String oldRecordHolder;

    @Schema(description = "破纪录时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recordTime;

    @Schema(description = "成绩提升幅度")
    private String improvement;

    @Schema(description = "成绩提升百分比")
    private String improvementPercentage;

    @Schema(description = "纪录类型")
    private String recordType; // school, city, province, national

    @Schema(description = "是否为历史最佳")
    private Boolean isHistoricalBest;

    @Schema(description = "备注")
    private String remarks;
}
